<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 给定两个字符串形式的非负整数 `num1` 和`num2` ，计算它们的和并同样以字符串形式返回。
        // 输入：num1 = "11", num2 = "123"
        function getSum(num1,num2) {
            const arr = []  
            let num = 0
            arr.push(num1,num2)
         for (let i = 0; i < arr.length; i++) {
            num += +arr[i]
         }
            return num
        }
        console.log(getSum('11','123'));
    </script>
</body>
</html>